home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Prog
/
T
/
TIFF Code.cpt
/
memory.c
< prev
next >
Wrap
Text File
|
1987-12-21
|
672b
|
48 lines
/*
* memory.c
*
* Copyright (c) 1987 by Bear River Associates, Inc.
*/
/* Primary Interface Files */
#include "Types.h"
/* Other Interface files */
#include "Memory.h"
/* Application-specific Include files */
#include "tifflib.h"
OSErr AllocPtr(ptrPtr, size)
Ptr *ptrPtr;
Size size;
{
OSErr error;
*ptrPtr = NewPtr(size);
error = MemError();
return(error);
}
OSErr AllocMemory(ptrHandle, size)
Handle *ptrHandle;
Size size;
{
OSErr error;
*ptrHandle = NewHandle(size);
error = MemError();
return(error);
}
OSErr AllocHandleSize(h, newSize)
Handle h;
Size newSize;
{
OSErr error;
SetHandleSize(h, newSize);
error = MemError();
return(error);
}